Skip to content

Conversation

jeroen
Copy link
Member

@jeroen jeroen commented Sep 28, 2018

@thomasp85 Example of calling the API:

library(gifski)
gif_file <- tempfile(fileext = ".gif")
gifski_encoder <- gifski_encoder_init(gif_file)

for(i in 1:10){
  pngfile <- tempfile(fileext = '.png')
  png(pngfile)
  plot(rnorm(i * 10), main = i)
  dev.off()
  framenum <- gifski_encoder(pngfile)
  cat("Added frame: ", framenum, "\n")
  unlink(pngfile)
}

out <- gifski_encoder(NULL)
utils::browseURL(out)

@jeroen jeroen force-pushed the master branch 4 times, most recently from 2fec96b to 61aea9e Compare October 2, 2018 23:09
@jeroen jeroen force-pushed the master branch 6 times, most recently from b9358d3 to 4776df5 Compare April 4, 2022 17:09
@jeroen jeroen force-pushed the master branch 2 times, most recently from c517a0a to f964322 Compare August 1, 2022 10:30
@jeroen jeroen force-pushed the master branch 2 times, most recently from 711f6d8 to 7af0ff6 Compare May 19, 2023 14:13
@jeroen jeroen force-pushed the master branch 6 times, most recently from f5de62b to f33573d Compare October 12, 2023 12:37
@jeroen jeroen force-pushed the master branch 2 times, most recently from a6ee451 to fe7af12 Compare March 22, 2025 21:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant